import { configure, getLogger } from 'log4js';
import { logCfg } from '../config/logcfg';

configure(logCfg);

function logger(category?: string) {
  if(category){
    return getLogger(category);
  }else{
    return getLogger();
  }
}

export {
  logger
}
